package com.ssm.circle.server;

import com.ssm.auth.api.UserFeignService;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

/**
 * 圈子微服务启动类
 */
@SpringBootApplication
@ComponentScan("com.ssm")  //包扫描，在别的模块下可能也有com.ssm的包，需要
@MapperScan("com.ssm.**.dao") //扫描mapper接口
@EnableFeignClients(clients = {UserFeignService.class}) //开启feign,指定需要加载的Client接口字节码,不然扫描不到feign容器
public class CircleApplication {
    public static void main(String[] args) {
        SpringApplication.run(CircleApplication.class, args);
    }
}
